Ext.define('Pearlsen.form.PPanel', {
	 extend:'Ext.form.Panel',
	 alias: 'widget.pform',
	 createForm: function() {
		 return new Pearlsen.form.PBasic(this, Ext.applyIf({listeners: {}}, this.initialConfig));
	},
	reset:function(){
		this.form.reset();
	},
	getConditions:function(){
		return this.form.conditions;
	},
	setConditions:function(conditions){
		this.form.conditions = conditions || [];
	},
	addCondition:function(condition){
		this.form.addCondition(condition);
	},
	addConditionIf:function(condition){
		this.form.addConditionIf(condition);
	},
	removeCondition:function(fieldName){
		this.form.removeCondition(fieldName);
	},
	clearCondition:function(){
		this.form.clearCondition();
	},
	getCondition:function(fieldName){
		return this.form.getCondition(fieldName);
	}
	
	
});